<template>
    <div class='goodscontent' v-html="content">
    </div>
</template>
<script>
import axios from "axios";

export default {
  data() {
    return {
      content: ""
    };
  },
  mounted() {
    const id = this.$route.params.id;
    axios({
      method: "get",
      url: "/menus/" + id
    })
      .then(res => {
        this.content = res.data.data[0].content;
      })
      .catch(() => {
        console.log(error);
      });
  }
};
</script>
<style scoped>
.edit ul li {
  /* overflow: hidden; */
  display: flex;
  flex: 1;
  padding-bottom: 20px;
}

.edit ul li em {
  font-size: 40px;
  color: #ff3232;
  font-style: italic;
  text-align: center;
  font-family: arial;
  height: 50px;
  line-height: 50px;
}

.edit ul li p {
  padding: 10px 20px 16px 0px;
  line-height: 24px;
  color: #252525;
  font-size: 16px;
}
</style>
